import request from '@/utils/request'


export function getUserPersonalInfo() {
    return request({
        url: '/user/personal/info',
        method: 'get'
    })
}

export function updateUserPersonalInfo(data) {
    return request({
        url: '/user/personal/update',
        method: 'post',
        data: data
    })
}


// src/api/user.js
export function getCaptcha() {
    return request({
        url: '/captcha',
        method: 'get',
        responseType: 'json' // 设置响应类型为 json
    });
}

export function getUserPersonalCount() {
    return request({
        url: '/user/personal/count',
        method: 'get'
    })
}

// 修改密码接口
export function changePassword(data) {
    return request({
        url: '/user/personal/change-password',
        method: 'post',
        data: data
    })
}
